package com.changhai.diabetes.service;

import java.io.IOException;
import java.util.List;

import com.changhai.diabetes.model.TableForPatient;
import com.changhai.diabetes.model.User;

public interface CommonService {

	public void updateSession(String dsName, Long id, int adminType);

	public User auth(String dsName, String login, String passwd);

	public Object getObject(String dsName, String strSQL, Object obj);

	public List getList(String dsName, String strSQL, Object obj);

	public void insertObject(String dsName, String insertSQL, Object obj);

	public Integer insertObjectID(String dsName, String insertSQL, Object obj);

	public void updateObject(String dsName, String updateSQL, Object obj);

	public void deleteObject(String dsName, String deleteSQL, Object obj);

	public User auth(String login, String passwd);

	public Object getObject(String strSQL, Object obj);

	public List getList(String strSQL, Object obj);

	public void insertObject(String insertSQL, Object obj);

	public Integer insertObjectID(String insertSQL, Object obj);

	public void updateObject(String updateSQL, Object obj);

	public void deleteObject(String deleteSQL, Object obj);

	public List<TableForPatient> getTableByPatientId(Long patientId, Integer flag);

	public List<TableForPatient> getBasicTables();

	public void writeLogToFile(String method, String item, Long patientid) throws IOException;
}
